const Router = require('koa-router')
const common = require('./common.route')
const user = require('./user.route')
const article = require('./article.route')
const tag = require('./tag.route')
const comment = require('./comment.route')
const router = new Router()
router.prefix('/api/v1')


router.use('/common',common.routes(),common.allowedMethods())

router.use('/users',user.routes(),user.allowedMethods())

router.use('/articles',article.routes(),article.allowedMethods())

router.use('/tags',tag.routes(),tag.allowedMethods())

router.use('/comments',comment.routes(),comment.allowedMethods())
module.exports = router;